# include <bits/stdc++.h>
# define MAXN 102
using namespace std;
inline int gn() {
	int k = 0;
	char c = getchar();
	for(; !isdigit(c); c = getchar()) ;
	for(; isdigit(c); c = getchar()) k = k * 10 + c - '0';
	return k;
}
int n, m, q;
struct edge {
	int to;
	edge *ne;
	edge(){ne = NULL, to = 0;}
	edge(int to_, int ne_) {
		to = to_, ne = ne_;
	}
}*head[MAXN];
addedge(int fr, int to) {
	edge *e = new edge();
	e->ne = head[fr];
	e->to = to;
	head[fr] = e;
}


int main() {
	q = gn();
	while(q--) {
		memset(head, NULL, sizeof(head));
	}
}
